package com.car.service;

import com.car.dao.PurchaseRecordDao;
import com.car.dao.impl.PurchaseRecordImpl;
import com.car.domain.PurchaseRecord;

import java.util.List;

public class PurchaseRecordService {
   private final static PurchaseRecordDao purchaseRecordDao = new PurchaseRecordImpl();
    public List<PurchaseRecord>findByUserId(Integer userId) throws Exception {
        return purchaseRecordDao.findByUserId(userId);
    }
}
